//获取医院数据
export type Status = 0 | 1
export interface IhospitalListParams {
  page: number
  limit: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

export interface IhospitalListItem {
  id: string
  createTime?: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hosname: string
  logoData: string
  status: Status
}
export type IhospitalList = IhospitalListItem[]
export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

//获取省数据
export interface Iprovince{
    "id": number
    "name":string,
    "value": string,
}
export type IprovinceList = Iprovince[]

//获取市、区、类型
export interface IDit{
      "id": number,
      "name":string,
      "value": string
}
export type IDitList =IDit[] 

//查看数据详情

export interface IBookingRule{
   "cycle": number,
    "releaseTime": string,
    "stopTime": string,
    "quitTime": string,
    "rule": string[],
}

export interface IHospital extends  IhospitalListItem {
  "hoscode": string,
  "intro": string,
  "route": string,
}
export interface IShowDetail{
  "bookingRule"?: IBookingRule,
  "hospital"?: IHospital
}

//科室管理
export type IdepList = Idep[]
export interface Idep {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

// 排班规则数据接口
export interface IbookingSchedule {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}
export type IbookingScheduleList = IbookingSchedule[]
export interface IscheduleRuleRes {
  total: number
  bookingScheduleList: IbookingScheduleList
  baseMap: {
    hosname: string
  }
}

//排班管理
export interface Ischedule{
    "id": string,
    "title":string ,
    "skill":string,
    "workDate": string
    "reservedNumber": number,
    "availableNumber": number,
    "amount": number,
}
export type IscheduleRule =Ischedule[]
